import { createApp } from 'vue';
import App from './App.vue';
const app = createApp(App);

import router from './router';
app.use(router); // 注册路由

import store from './store';
app.use(store);

import * as ElementPlusIconVue from '@element-plus/icons-vue';
import 'element-plus/dist/index.css';
for (const [key, component] of Object.entries(ElementPlusIconVue)) {
  app.component(key, component);
}

import './styles/index.css';

app.mount('#app');
